home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / util / gnu / xpdf-0.8-src.lha / xpdf-0.8-src / ltk / LTKMisc.cc < prev    next >
C/C++ Source or Header  |  1998-11-28  |  584b  |  30 lines

  1. //========================================================================
  2. //
  3. // LTKMisc.cc
  4. //
  5. // Copyright 1996 Derek B. Noonburg
  6. //
  7. //========================================================================
  8.  
  9. #ifdef __GNUC__
  10. #pragma implementation
  11. #endif
  12.  
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include <stddef.h>
  16. #include <stdarg.h>
  17. #include "LTKMisc.h"
  18. #include "LTKWindow.h"
  19. #include "LTKWidget.h"
  20.  
  21. void ltkError(char *msg, ...) {
  22.   va_list args;
  23.  
  24.   fprintf(stderr, "LTK Error: ");
  25.   va_start(args, msg);
  26.   vfprintf(stderr, msg, args);
  27.   va_end(args);
  28.   fprintf(stderr, "\n");
  29. }
  30.